<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
</head>
<body>
	<h2>用户头像上传</h2>
	<p>用户姓名：张三</p>
	现有头象：<img src="<?php echo $allPath; ?>" onerror="this.src='./default.jpg'">
	<form action="" method="post" enctype="multipart/form-data">
		<input type="file" name="photo"><br>
		<input type="submit" value="上传">
	</form>
</body>
</html>